import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
import { CookieModule } from 'ngx-cookie';
import { AppRoutingModule } from './app-routing.module';
import { LoginModule } from './login/login.module';
import { HomeModule } from './home/home.module';

import { BaseRequestOptions, RequestOptions, CookieXSRFStrategy, HttpModule, XSRFStrategy } from '@angular/http';

import { RestService } from './services/rest.service';
import { LoginService } from './services/login.service';
import { DataService } from './services/data.service';
import { ElasticsearchService } from './services/elasticsearch.service';

import { AppComponent } from './app.component';

@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    CookieModule.forRoot(),
    HttpModule,
    LoginModule,
    HomeModule,
    AppRoutingModule
  ],
  declarations: [
    AppComponent
  ],
  providers: [
    RestService,
    DataService,
    LoginService,
    ElasticsearchService
  ],
  bootstrap: [AppComponent]
})

export class AppModule { }
